package cn.exercises.oop02;

public class Teacher extends Person{
    private String dept;

    public Teacher() {
    }

    public Teacher(String name, int age, String dept) {
        super(name, age);
        this.dept = dept;
    }

    public String getDept() {
        return dept;
    }

    public void setDept(String dept) {
        this.dept = dept;
    }

    // 填写听课反馈fillForm
    public void fillForm(){
        System.out.println(this.getName()+" 所在"+this.dept+"部门正在填写听课反馈");
    }
}
